<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no, initial-scale=1" />
		<meta content="yes" name="apple-mobile-web-app-capable" />
		<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
		<meta content="telephone=no" name="format-detection" />
		<title>商户信息</title>
		<link rel="stylesheet" type="text/css" href="../../bdfpreloan/css/base.css" />
		<!--自适应插件-->
		<script type="text/javascript" src="../../bdfpreloan/js/FS.js"></script>
	</head>

	<body>
		<div class="fixBottom bgf fh1">
			<div class="wx-btn" onclick="submitForm();">下一步</div>
		</div>
		<div class="wx-content">
				<form name='myForm' id='myForm' action="" method="post">
				<ul class="wx-formlist wx-formlist-noicon">
					<!--<li class="wkbox mateinfo">
						<div class="tl">企业名称</div>
						<div class="autoW tr cl3c wx-input-group">
							<input id="qymc" type="text" placeholder="" maxlength="20" />
						</div>
					</li>-->
					<li class="wkbox mateinfo">
						<div class="tl">统一社会信用代码</div>
						<div class="autoW tr cl3c wx-input-group">
							<input id="licenseNo" name="licenseNo" type="text" placeholder="" maxlength="18" />
						</div>
					</li>
				</ul>
				</form>
			</div>
		</div>
		<script src="../../bdfpreloan/vendor/jquery-2.1.3.min.js"></script>
		<script type="text/javascript" src="../../bdfpreloan/js/wx.js"></script>
		<script src="../../bdfpreloan/js/validate.js"></script>
		<script>
			//初始化表单校验规则 v1.0 by wangxiang3
			validate.init({
				rules: {
					licenseNo: {
						required:true,
						length:18
					}
				},
				messages: {
					
				}
			})
			function submitForm() {
				if (validate.submitForm()) {
					 var reg = new RegExp(/^[A-Za-z0-9]+$/);
					if(!reg.test($('#licenseNo').val())){
						alert('请输入正确的统一社会信用代码');
						return false;
					}
					$('#myForm').attr("action", "checkFlow").submit();
				}
			}
		</script>
	</body>

</html>